﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XTJTipsPanel : MonoBehaviour {

    public GameObject closeBtn;
    public GameObject returnBtn;
    public GameObject addMoneyBtn;
	
	void Start () {
		
	}

    void ButtonClick(GameObject button)
    {
        if (button.name == "ReturnBtn")
        {
            Destroy(gameObject);
        }
        else if (button.name == "RechargeBtn")
        {
            GameObject addMoney = NGUITools.AddChild(GameObject.Find("UI Root"),(GameObject)Resources.Load(HallPrafabPath.AddMoney));
        }
        else if (button.name == "CloseBtn")
        {
            Destroy(gameObject);
        }
    }
	
	
}
